package com.ncu.week2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class Main3Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);

        Intent receiveIntent=getIntent();
        //得到Intent
        String name=receiveIntent.getStringExtra("name");
        String password=receiveIntent.getStringExtra("password");
        ((TextView)findViewById(R.id.textView3)).setText("姓名："+name);
        ((TextView)findViewById(R.id.textView4)).setText("密码："+password);
    }
}
